package com.dapeis.api.controller.collocation;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;

import com.google.gson.JsonElement;

/**
 * 搭配师基础信息
 * @author win7
 *
 */
public interface IInformationCotroller {
	/**
	 * 搭配师入驻审核信息
	 * @param workTime
	 * @param name
	 * @param sex
	 * @param birthday
	 * @param IDcardNo
	 * @param IDcardFront
	 * @param IDcardContrary
	 * @param serverCity
	 * @param qualification
	 * @param request
	 * @return
	 */
	@RequestMapping(value = "/save" , method = RequestMethod.POST , consumes = "multipart/form-data")
    @ResponseBody
    JsonElement save(@RequestParam Integer workTime , @RequestParam String  name,
    		@RequestParam Integer sex , @RequestParam String birthday , @RequestParam String IDcardNo ,
    		@RequestParam MultipartFile IDcardFront , @RequestParam MultipartFile IDcardContrary  , 
    		@RequestParam String serverCity , @RequestParam String qualification , HttpServletRequest request);
	/**
	 * 个人中心信息保存
	 * @param nickName
	 * @param honor
	 * @param cityCode
	 * @param address
	 * @param goodStyle
	 * @param request
	 * @return
	 */
	
	@RequestMapping(value = "/updateCentre" , method = RequestMethod.POST , consumes = "multipart/form-data")
    @ResponseBody
    JsonElement updateCentre(MultipartFile headImg,@RequestParam String nickName , @RequestParam String honor , 
    		@RequestParam String cityCode , @RequestParam String address , @RequestParam String goodStyle ,
    		@RequestParam String remark ,
    		HttpServletRequest request);
	
}
